The IMSL_INV function computes the inverse of a real or complex, square matrix.
Note: This routine requires an IDL Analyst license. For more information, contact your Exelis VIS sales or technical support representative.
Compute the incomplete beta function for the corresponding elements of A, B, and Z.
RM, a, 3, 3
; Define the matrix to be inverted.
row 0: 1 3 3
row 1: 1 3 4
row 2: 1 4 4
ainv = IMSL_INV(a)
; Call IMSL_INV to perform the inversion.
PM, a
; Output the original matrix.
1.00000 3.00000 3.00000
1.00000 3.00000 4.00000
1.00000 4.00000 4.00000
PM, ainv
; Output the computed inverse.
4.00000 -0.00000 -3.00000
0.00000 -1.00000 1.00000
-1.00000 1.00000 0.00000
PM, a # ainv
; Check the results.
1.00000 0.00000 0.00000
0.00000 1.00000 0.00000
0.00000 0.00000 1.00000
Result =IMSL_INV( A, [, /DOUBLE] )
A two-dimensional matrix containing the inverse of the matrix A.
Two-dimensional matrix containing the matrix to be inverted.
If present and nonzero, double precision is used.
MATH_SINGULAR_MATRIX - Input matrix is singular
|
6.4 |
Introduced |